package com.kuang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 微信用户信息vo
 */

@TableName("kss_user")
public class WeiXinUser {


    //主键
    @TableId(type = IdType.ID_WORKER)
    private Long id;
   /* // 微信登陆的code
    private String code;
*/
    private String password;
    // 微信登陆成功以后opend
    private String openid;
    // 微信用户的头像
    private String avatarUrl;
    // 微信用户的城市
    private String city;
    // 微信用户的国家
    private String country;
    // 微信用户的性别1男 0女
    private Integer gender;
    // 微信用户的昵称
    private String username;
    // 微信用户的省份
    private String province;

    private int active;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

  /*  public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }*/

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public int getActive() {
        return active;
    }

    public void setActive(int active) {
        this.active = active;
    }

    public WeiXinUser(Long id, String password, String openid, String avatarUrl, String city, String country, Integer gender, String username, String province, int active) {
        this.id = id;
      //  this.code = code;
        this.password = password;
        this.openid = openid;
        this.avatarUrl = avatarUrl;
        this.city = city;
        this.country = country;
        this.gender = gender;
        this.username = username;
        this.province = province;
        this.active = active;
    }

    public WeiXinUser() {
    }

    @Override
    public String toString() {
        return "WeiXinUser{" +
                "id=" + id +
                ", password='" + password + '\'' +
                ", openid='" + openid + '\'' +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", city='" + city + '\'' +
                ", country='" + country + '\'' +
                ", gender=" + gender +
                ", username='" + username + '\'' +
                ", province='" + province + '\'' +
                ", active=" + active +
                '}';
    }
}

